package com.shujia.five;

public class OperatorDemo3 {

    public static void main(String[] args) {
        // 赋值运算符
        // 连续赋值, a, b, c数据类型都是int
        int a = 10, b = 20, c = 15;
//        int a = 10;
//        int b = 20;
//        int c = 30;
        System.out.println(a);
        System.out.println(b);
        System.out.println(c);

        System.out.println("-----------------");

        // 扩展赋值运算符： +=, -=, *=, /=, %=
        // a += b; // a = a + b;
        // a -= b; // a = a - b;
        // a *= b;// a = a * b;
        // a /= b; // a = a / b;
        // System.out.println(a);
        b %= c;// b = b % c;
        System.out.println(b);






    }
}
